using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class StopUIBtn : MonoBehaviour
{
    public GameManager gm;
    private GameObject _gamemodeData;
    
    void Start()
    {
        Time.timeScale = 1;
        _gamemodeData = GameObject.FindGameObjectWithTag("Data");
    }

    void Update()
    {
        
    }
    public void ExitBtn()
    {
        gm.stopUIWindow.SetActive(false);
        SceneManager.LoadScene("ChaneScene");
        Destroy(_gamemodeData);
    }
    public void RestartBtn()
    {
        gm.stopUIWindow.SetActive(false);
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
        Time.timeScale = 1;
    }
    public void UpstartBtn()
    {
        gm.stopUIWindow.SetActive(false);
        gm.levelMusic.UnPause();
        Time.timeScale = 1;
    }
}
